# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DFAReporting.V4.Model.SiteVideoSettings do
  @moduledoc """
  Video Settings

  ## Attributes

  *   `companionSettings` (*type:* `GoogleApi.DFAReporting.V4.Model.SiteCompanionSetting.t`, *default:* `nil`) - Settings for the companion creatives of video creatives served to this site.
  *   `kind` (*type:* `String.t`, *default:* `nil`) - Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
  *   `obaEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether OBA icons are enabled for this placement.
  *   `obaSettings` (*type:* `GoogleApi.DFAReporting.V4.Model.ObaIcon.t`, *default:* `nil`) - Settings for the OBA icon of video creatives served to this site. This will act as default for new placements created under this site.
  *   `orientation` (*type:* `String.t`, *default:* `nil`) - Orientation of a site template used for video. This will act as default for new placements created under this site.
  *   `publisherSpecificationId` (*type:* `String.t`, *default:* `nil`) - Publisher specification ID used to identify site-associated publisher requirements and automatically populate transcode settings. If publisher specification ID is specified, it will take precedence over transcode settings. Possible values are: * `1`, Hulu * `2`, NBC * `3`, CBS * `4`, CBS Desktop * `5`, Discovery * `6`, VEVO HD * `7`, VEVO Vertical * `8`, Fox * `9`, CW Network * `10`, Disney * `11`, IGN * `12`, NFL.com * `13`, Turner Broadcasting * `14`, Tubi on Fox * `15`, Hearst Corporation * `16`, Twitch Desktop * `17`, ABC * `18`, Univision * `19`, MLB.com * `20`, MLB.com Mobile * `21`, MLB.com OTT * `22`, Polsat * `23`, TVN * `24`, Mediaset * `25`, Antena 3 * `26`, Mediamond * `27`, Sky Italia * `28`, Tubi on CBS * `29`, Spotify * `30`, Paramount * `31`, Max
  *   `skippableSettings` (*type:* `GoogleApi.DFAReporting.V4.Model.SiteSkippableSetting.t`, *default:* `nil`) - Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
  *   `transcodeSettings` (*type:* `GoogleApi.DFAReporting.V4.Model.SiteTranscodeSetting.t`, *default:* `nil`) - Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :companionSettings => GoogleApi.DFAReporting.V4.Model.SiteCompanionSetting.t() | nil,
          :kind => String.t() | nil,
          :obaEnabled => boolean() | nil,
          :obaSettings => GoogleApi.DFAReporting.V4.Model.ObaIcon.t() | nil,
          :orientation => String.t() | nil,
          :publisherSpecificationId => String.t() | nil,
          :skippableSettings => GoogleApi.DFAReporting.V4.Model.SiteSkippableSetting.t() | nil,
          :transcodeSettings => GoogleApi.DFAReporting.V4.Model.SiteTranscodeSetting.t() | nil
        }

  field(:companionSettings, as: GoogleApi.DFAReporting.V4.Model.SiteCompanionSetting)
  field(:kind)
  field(:obaEnabled)
  field(:obaSettings, as: GoogleApi.DFAReporting.V4.Model.ObaIcon)
  field(:orientation)
  field(:publisherSpecificationId)
  field(:skippableSettings, as: GoogleApi.DFAReporting.V4.Model.SiteSkippableSetting)
  field(:transcodeSettings, as: GoogleApi.DFAReporting.V4.Model.SiteTranscodeSetting)
end

defimpl Poison.Decoder, for: GoogleApi.DFAReporting.V4.Model.SiteVideoSettings do
  def decode(value, options) do
    GoogleApi.DFAReporting.V4.Model.SiteVideoSettings.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.DFAReporting.V4.Model.SiteVideoSettings do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
